package com.nj.forward.user.login.dao;

import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Repository;

import com.nj.framework.dao.StandardGenericDAO;

@Repository
public class UserLoginDAO extends StandardGenericDAO{
	public int queryUser(String userCode,String passWord) throws DataAccessException, ClassNotFoundException{
		String sql="SELECT COUNT(1) FROM fnd_user fu WHERE fu.user_code=? AND fu.user_pwd=?";
		return findByObject(sql, Integer.class, userCode,passWord);
	}
}
